import request from '@/utils/request'
import type { PageQuery, PageResponse, Alarm } from '@/types'
import { API_CONFIG } from '@/config'



// 分页查询报警信息
export function $getAlarmList(params: PageQuery) {
  return request.post<PageResponse<Alarm>>(API_CONFIG.ENDPOINTS.ALARM.LIST, params)
}

// 导出
export function $exportAlarmList(params: PageQuery) {
  return request.post(API_CONFIG.ENDPOINTS.ALARM.EXPORT, params)
}